﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    public class Student
    {
        
        public int id { get; set; }
        public string StrName { get; set; } //姓名
        public string sex { get; set; }   //性别

        [ForeignKey("Grade")]
        public int Grade_id { get; set; }  //外键 年级id
        public string Hobbies { get; set; }  //爱好
        public string Photo { get; set; }  //头像
        public string Remark { get; set; }  //备注
        public bool Married { get; set; }  //婚否

        public virtual Grade Grade { get; set; }
    }
}
